Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODNameResolver


IsODToken

The IsODToken method returns a Boolean value that indicates whether the specified token object has been initialized to the proper format for an OpenDoc token.

ODBoolean IsODToken(in ODOSLToken token);
token
A reference to the token to check.
return value
kODTrue if the token is a token object created by one of your object accessors, otherwise kODFalse.
DISCUSSION
You can call this method from the CallCompareProc method of your part's semantic interface. Either of the obj1 and obj2 parameters to that method may be either an ODDesc object that describes data or an ODOSLToken object created by one of your object accessors. To distinguish these two possibilities, you can pass each input parameter, in turn, to the IsODToken method. If this method returns true, the input parameter is a token object; if it returns false, the input parameter is a descriptor object.

SEE ALSO
The ODSemanticInterface::CallCompareProc method (page 587).
"Returning Tokens" on page 428 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help